HF RL Explorer

subscription billing: add feature

subscription billing: add feature: a task in smol-software-harbor (Harbor dataset). Add prorate(price cents, period start, period end, cancel on) to billing/dates.py : the charge for a billing period period start, period end) that is cancelled on cancel on is the price times the share of days used…

The task

Add `prorate(price_cents, period_start, period_end, cancel_on)` to `billing/dates.py`: the charge for a billing period `[period_start, period_end)` that is cancelled on `cancel_on` is the price times the share of days used (from `period_start` up to the day before `cancel_on`), rounded to the cent; cancelling before…

Part of efederici/smol-software-harbor.