better calculation of prorate rounding, #13299