salary to hourly
salary_to_hourlyConverts compensation between annual salary, monthly pay, weekly pay, and hourly wage. Accepts any of the four pay periods as input and derives all others. Uses configurable hours per week (default 40) and weeks per year (default 52). Daily rate assumes an 8-hour workday; monthly is annual divided by 12. Useful for comparing job offers quoted in different pay periods, freelance rate-setting, and budgeting. Chain from sales_tax to see how many hours a purchase costs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The salary or wage amount to convert. | |
| from_type | No | The pay period of the input amount. Defaults to 'annual'. | annual |
| hours_per_week | No | Hours worked per week. Defaults to 40 for a standard full-time schedule. | |
| weeks_per_year | No | Working weeks per year. Defaults to 52. Use 50 to account for 2 weeks unpaid vacation. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daily | Yes | Daily earnings assuming an 8-hour workday. | |
| annual | Yes | Annual salary. | |
| hourly | Yes | Hourly wage. | |
| weekly | Yes | Weekly earnings. | |
| monthly | Yes | Monthly earnings (annual / 12). | |
| biweekly | Yes | Biweekly (every two weeks) earnings. |