Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Let the remaining amount calculate itself

When you track amounts to collect and amounts to pay, the number you look at most is what is still left on each line. Typing that number by hand is where mistakes creep in: pay part of an amount, forget to update the remainder, and the list no longer matches reality. A simple fix: record the full amount and the amount already paid, and let the remaining amount be a formula — Amount minus Paid —…

When dealing with amounts to collect and amounts to pay, it is crucial to focus on the remaining balance on each line. Typing this figure manually often leads to errors, such as accidentally underreporting or overreporting the remainder, causing the list to diverge from actual reality. The solution to this problem is quite simple: record the total amount and the amount already paid, and let the remaining amount be calculated automatically.

According to a sample prepared in November 2026, the receivables amounted to 33,140,000 VND, while the payables stood at 29,170,000 VND, leaving a total remaining balance of 37,980,000 VND across 40 transactions. The key to this method is that the balance is not typed manually but is instead calculated by subtracting the paid amount from the total amount, and this formula is then copied down the entire list.

This ensures that any changes made to either the total amount or the paid amount are immediately reflected in the remaining balance.

The advantage of this approach is that the overview totals will always stay consistent with the individual line items. It eliminates the risk of typographical errors and ensures that the financial overview is always accurate and up-to-date. The decision to type or let a formula maintain the remaining amounts ultimately boils down to one question: do you prefer to manually input the remaining balances, or would you rather have the system do it for you and keep everything current?

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Your medical history should not start from scratch at every consultation

You arrive at a consultation with a professional who does not know you. They ask you about your medical history, the medication you take, and your latest studies. You remember part of it.

  • Personal health history should follow patient across providers
  • Digital files difficult to share between systems
  • FHIR standard helps connect health information

What do you do when your code works but you don't know why?

Every builder knows the feeling: you ship something, it works, and if someone asked you to explain exactly why, you'd have to pause.

  • Create a test to lock down the behavior
  • Insert a log at the boundary of the phenomenon
  • Recreate the issue in a minimal project

More from Tuesday, 1 December 2026 →