// Name: Proportional Rent Calculator
// Description: Calculate proportional rent between two dates with additional expenses
// Author: BeSpunky
// GitHub: BeSpunky
import "@johnlindquist/kit"
// Get rent calculation parameters
const fullRent = parseFloat(await arg("Enter full monthly rent amount:"))
const additionalExpenses = parseFloat(await arg("Enter additional monthly expenses:") || "0")
const startDate = new Date(await arg("Enter start date (YYYY-MM-DD):"))
const endDate = new Date(await arg("Enter end date (YYYY-MM-DD):"))
// Validate dates
if (startDate >= endDate) {
await div(md("❌ **Error:** Start date must be before end date"))
exit()
}