Merge pull request #40900 from nabinhait/pro-rata-calc-fix

fix: pro-rata amount for straight line method