Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-65598

Loan Calculator calculate incorrect values if years value in decimal

    Details

      Description

      When user enter years value in decimal like 1.5, it calculates interest of 30 years (default value).

      Step to reproduce
      Enter following values:

      • Loan Amount : 200,000
      • Interest Rate : 7.00
      • Years : 1.5

      Actual result :

      • Monthly Payment - 1,331
      • Interest Paid - 279,018
      • Total Paid - 479,018

      Expected result :

      • Monthly Payment - 11,737
      • Interest Paid - 11,266
      • Total Paid - 2,11,266

        Attachments

        1. fix.png
          fix.png
          31 kB
        2. reproduce.png
          reproduce.png
          31 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 19 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.1 CE GA2