Calculate the prorated amount, whether annual proration of a charge or monthly proration of a charge.
Useful for software subscription charges, tenant rent calculations, and more.