I have a client running on BC19 on-premise US and have discovered inaccuracies in some of the finance charge memo amounts calculated by the system, or at least they believe it do be inaccurate. In the below snippet, we have the two relevant entries from the detailed customer ledger entry table. Any assistance in explaining how the system gets the amount would be appreciated.
The output for the finance charge amount from the system is $108.98. This is the piece of code I debugged in the Finance Charge Memo Lines table to figure out how the system calculates the amount.
BC does the calculates this in a strange way when compare to the MS documentation but it may make more sense to you:
1. We get this accumulated amount: difference between date of initial entry of invoice vs. May 9th 2024 (760 days) * Initial invoice entry amount $667.30 = $507,148
2. We get this accumulated amount: difference between date of application of the credit memo vs. May 9th 2024 (217 days) * Credit memo entry amount -$443.96 = -$96339.30
3. The difference between #1 and #2 outputs = $410808.70 which is then run through this calculation: ($410808.70 / 30) * (79167/100) = $108.40. BUT WE ARE STILL OFF BY $0.58. See further down.
Somehow when BC calculates the difference between the credit memo posting date and today's date it gets 212.112 days...... I have no clue how and I can see the dates in the code to confirm that the output is created by 05/10/2023 (dd/mm/yyyy) - 09/05/2024 (dd/mm/yyyy). Any assistance in explaining this is greatly appreciated.
Hi
Per checking, It’s clear you’ve done some solid debugging. The discrepancy in the finance charge memo amount ($108.98 vs. $108.40) and the unexpected day count (212.112 instead of 217) likely stems from how BC19 calculates interest using the Average Daily Balance method, especially when partial applications and decimal day factors are involved.
Here’s what’s happening under the hood:
1. BC uses fractional day weights
2. Interest calculation formula nuance
((Sum of (Amount × Days)) / 30) × (Interest Rate / 100)
3. Application entries affect balance timeline
4. Debugging tip
CalcInterestAmount
CalcDaysBetweenDates
CalcAverageDailyBalance
MS documentation confirms that BC uses either Average Daily Balance or Balance Due methods, and that the former can include weighted day calculations. If you find this helpful, feel free to mark this as the suggested or verified answer. Cheers Jeffrey
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Andrés Arias as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Sohail Ahmed 2,737 Super User 2025 Season 2
Sumit Singh 2,577
Jeffrey Bulanadi 2,251