Calculate prorated rent
calculate_prorated_rentRead-onlyIdempotent
Use this when the user wants prorated rent for a move-in or move-out (prorated rent calculator, 'tenant moved in on the 17th, how much rent do they owe', partial month rent). Returns the amount, computed to the cent, by three methods side by side (actual days in the month, 30-day month, 365-day year), the daily rate, and the formula, counting the move-in and move-out days inclusively; leap-year February is handled. Assumes rent covers calendar months (due on the 1st). Does not build a full ledger (use generate_rent_ledger for payments and balances) and does not give legal advice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | The proration method the lease uses; the result shows all three. actual_days (default): rent / days in that month. thirty_day: rent / 30. annual_365: rent x 12 / 365. | |
| rounding | No | round_total (default): round only the final amount to the cent. daily_rate_first: round the daily rate to the cent first, then multiply by the days. | |
| monthly_rent | Yes | Full monthly rent in USD, e.g. 1450. | |
| move_in_date | No | Move-in date (first day the tenant has the unit), YYYY-MM-DD, e.g. 2026-10-17. Give this, move_out_date, or both. | |
| move_out_date | No | Move-out date (last day the tenant pays for), YYYY-MM-DD, e.g. 2026-11-10. |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| notes | Yes | ||
| method | Yes | ||
| display | Yes | ||
| periods | Yes | ||
| rounding | Yes | ||
| method_label | Yes | ||
| monthly_rent | Yes | ||
| total_prorated | Yes | ||
| full_months_between | Yes |