Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Applying an "Additional Payment" to Amortized Loan Schedule Table

Featured Replies

  • Newbies

I am using the attached file to calculate amortization table for clients. However, there is a glitch in the app somewhere that does not allow the balance to be visible to the calculations in the loop. If I enter a loan for any amount and set the term to 30 years, at payment number 161 the balance is no longer visible or usable which creates problems for the following payment schedule. At payment 161 I can click in the field and it appears the correct balance is there, but it cannot be seen when I leave the field or used in calculations...

This is a file I found here on the forum in a 2014 discussion... So I am looking for help to debug it.... 

Anny help will be appreciated and thanks in advance...

 

Amortization Table with Additonal Payment Option.zip

I am not particularly eager to debug someone else's file - esp. as it is not well-written (at least IMHO) and the logic is not clear. Still, I took a look at it and I suspect the problem you report is caused by the Balance field auto-entering a calculated value =

Balance - AdditionalPayment & Round (Balance-.009; 2)

I cannot find the logic in this. The field is defined as a Number field (as it well should), and concatenating two numbers makes no sense.

Similarly, the Principal field auto-enters =

Repaid + AdditionalPayment & Round (Repaid - .005; 2)

This causes both fields to contain more than one decimal point. I did not spend time investigating how exactly this leads to the breakup you see. However, when I commented out the parts that start with the & symbol, the breakup disappeared. I am not sure what effect this has on the correctness of the result - but I did not check the correctness of the result before making this change either.


I would advise you to rewrite the file from scratch. And take this opportunity to make it much simpler. If you're using a script to create the schedule (as you should), then place the entire logic in the script itself and make it populate the fields in the Schedule table with their final values - without requiring the fields to perform additional calculations. Also, I am not sure what exactly is achieved by subtracting .005 or .009 before rounding. I recall seeing this in some old files, but I could never understand the reason for it.

 

  • Author
  • Newbies

Thanks for your assistance... Once I commented the & stuff, the application runs very nicely... 

As you said, I do not understand the concatenation either. But now that it is gone, I won't worry about it...

Again thanks very much, it was a puzzle to me....

1 minute ago, Todd W Carter said:

now that it is gone, I won't worry about it...

In your place I would worry about one thing: are the results correct?

 

  • Author
  • Newbies

Yes they are correct...

Edited by Todd W Carter

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.