Fix problem with prorate amount when calculation is based on days or weeks.