How do you calculate a late fee on an invoice?
Count the days from the due date to the payment date, then apply the agreed method: a flat fee, a monthly percentage, or annual interest. For annual simple interest the formula is amount × rate × days late ÷ 365.