Catalog/hr-salary-to-hourly

Calculators

Salary <-> hourly converter API

Convert between annual salary and hourly rate using hourly = annual / (hoursPerWeek x weeksPerYear) (default 2080 full-time hours), with monthly/biweekly/weekly/daily breakdowns. Deterministic payroll math LLMs slip on. Answers 'what's $104k a year hourly','convert $50/hr to a salary','what's my biweekly paycheck'.

Price$0.01per request
MethodPOST
Route/v1/calc/hr-salary-to-hourly
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
hrpayrollsalaryhourlycompensationcalcpaywage
API URLhttps://x402.hexl.dev/v1/calc/hr-salary-to-hourly
Integration docs
Example request
{
  "annualSalary": 104000
}
Example response
{
  "mode": "toHourly",
  "annualSalary": 104000,
  "annualHours": 2080,
  "hoursPerWeek": 40,
  "weeksPerYear": 52,
  "hourlyRate": 50,
  "monthly": 8666.67,
  "biweekly": 4000,
  "weekly": 2000,
  "daily": 400
}
Input schema
{
  "type": "object",
  "required": [
    "annualSalary"
  ],
  "properties": {
    "mode": {
      "type": "string",
      "enum": [
        "toHourly",
        "toAnnual"
      ],
      "default": "toHourly"
    },
    "annualSalary": {
      "type": "number",
      "description": "Annual salary in dollars (for toHourly)",
      "examples": [
        104000
      ]
    },
    "hourlyRate": {
      "type": "number",
      "description": "Hourly rate in dollars (for toAnnual)",
      "examples": [
        50
      ]
    },
    "hoursPerWeek": {
      "type": "number",
      "default": 40,
      "examples": [
        40
      ]
    },
    "weeksPerYear": {
      "type": "number",
      "default": 52,
      "examples": [
        52
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}