Case 5: payment run with early payment discounts
Every Thursday a payment run goes to the bank. You decide which supplier bills are paid today: every bill where an early payment discount can still be taken, and every bill that falls due before the next run. Then you check whether taking discounts is worth it at all.
In short: discount deadline and due date are the invoice date plus days from the supplier master (XLOOKUP). The discount applies only if the deadline has not passed on the payment date. A bill is paid if the discount is above 0 OR it falls due before the next run. The annual rate of a discount is rate divided by (1 minus rate) times 365 divided by the days gained.
The situation
The accounts payable clerk at a metal fabrication business is preparing the weekly payment run on Thursday 12 Nov 2026; the next one is on 19 Nov 2026. The finance director has set two rules: never lose a discount and never let a bill go overdue. She also wants to know whether it makes sense to use the overdraft, at 10.5% a year, to pay early for a discount.
The workbook sheet by sheet
- PaymentRun: the export of open supplier bills with document, invoice date, supplier and amount, plus the columns you fill.
- Suppliers: number, name, category, the terms as text (for example "2% within 14 days, net 30", often written 2/14 net 30) and the numbers behind them: discount days, discount rate and net days. One supplier gives no discount, so its row has 0 days and 0%.
- Settings: this run's payment date and the next run (task 1), or the overdraft rate (task 2).
Task 1: the payment run
Task Put together the payment run for the payment date in Settings!B1. C2: the discount deadline, invoice date plus the supplier's discount days. D2: the net due date, invoice date plus net days. G2: the discount amount rounded to cents, but only if the discount deadline has not passed on the payment date, otherwise 0. H2: what is paid today: amount minus discount if the discount is taken or the invoice is due before the next payment run (Settings!B2), otherwise 0. Fill everything down to row 9; G11 and H11 are the totals.
| A | B | C | D | E | F | G | H | I | |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Document | Invoice date | Discount until | Due net | Supplier | Amount | Discount | Pay today | |
| 2 | ER-4560 | 28 Oct 2026 | L-202 | 2380 | |||||
| 3 | ER-4566 | 5 Nov 2026 | L-201 | 1249 | |||||
| 4 | ER-4571 | 3 Nov 2026 | L-204 | 15470 | |||||
| 5 | ER-4549 | 16 Oct 2026 | L-203 | 3867.5 | |||||
| 6 | ER-4552 | 20 Oct 2026 | L-204 | 8925 | |||||
| 7 | ER-4575 | 9 Nov 2026 | L-202 | 714 | |||||
| 8 | ER-4538 | 7 Oct 2026 | L-201 | 535.5 | |||||
| 9 | ER-4580 | 10 Nov 2026 | L-203 | 1904 | |||||
| 10 | |||||||||
| 11 | Total | ||||||||
| 12 | |||||||||
| 13 |
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Supplier | Name | Category | Terms | Discount days | Discount rate | Net days | |
| 2 | L-201 | Ashby Paper Co | Office supplies | 3% within 8 days, net 30 | 8 | 0.03 | 30 | |
| 3 | L-202 | Vogt Electrical | Electrical | 2% within 14 days, net 30 | 14 | 0.02 | 30 | |
| 4 | L-203 | Albers Freight | Freight | net 30 | 0 | 0 | 30 | |
| 5 | L-204 | Rieger Metalwork | Metalwork | 2% within 10 days, net 45 | 10 | 0.02 | 45 | |
| 6 | ||||||||
| 7 |
| A | B | C | |
|---|---|---|---|
| 1 | Payment date (this run) | 12 Nov 2026 | |
| 2 | Next payment run | 19 Nov 2026 | |
| 3 | |||
| 4 |
Step 1: discount deadline and due date
The terms belong to the supplier. C2: =B2+XLOOKUP(E2,Suppliers!$A$2:$A$5,Suppliers!$E$2:$E$5); D2 is the same with the net days in column G. The lesson on calculating with dates explains why a date plus days works.
Step 2: discount only within the deadline
G2: =IF(C2>=Settings!$B$1,ROUND(F2*XLOOKUP(E2,Suppliers!$A$2:$A$5,Suppliers!$F$2:$F$5),2),0). If the deadline has passed on the payment date, the discount is 0. A deadline that ends on the payment date still counts, hence greater than or equal. In this case the discount comes off the invoice total; how the tax part of a discount is treated depends on your VAT or sales tax rules and is handled when you post, not in the payment run.
Step 3: what goes out today?
H2: =IF(OR(G2>0,D2<Settings!$B$2),F2-G2,0). Two reasons to pay, joined with OR: a discount is still available, or the bill would be due or overdue by the next run. Everything else waits. G11 and H11 total the discounts and the payment for approval.
Task 2: is the discount worth it?
Task Management asks whether early payment discounts are worth it if you have to use the overdraft to pay early. I2: the effective annual rate of the discount: discount rate divided by (1 minus discount rate), times 365 divided by (net days minus discount days); 0 if there is no discount. J2: "take discount" if this rate is above the overdraft rate in Settings!B1, otherwise "use terms". K2: the discount earned per year (annual spend times discount rate) if the discount is taken, otherwise 0. Fill everything down to row 6; K8 is the total.
| A | B | C | D | E | F | G | H | I | J | K | L | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Supplier | Name | Category | Terms | Discount days | Discount rate | Net days | Annual spend | Annual rate of discount | Decision | Discount per year | |
| 2 | L-201 | Ashby Paper Co | Office supplies | 3% within 8 days, net 30 | 8 | 0.03 | 30 | 18400 | ||||
| 3 | L-202 | Vogt Electrical | Electrical | 2% within 14 days, net 30 | 14 | 0.02 | 30 | 42600 | ||||
| 4 | L-203 | Albers Freight | Freight | net 30 | 0 | 0 | 30 | 31200 | ||||
| 5 | L-204 | Rieger Metalwork | Metalwork | 2% within 10 days, net 45 | 10 | 0.02 | 45 | 96500 | ||||
| 6 | L-205 | Hahn Print | Printing | 1% within 10 days, net 90 | 10 | 0.01 | 90 | 12800 | ||||
| 7 | ||||||||||||
| 8 | Total | |||||||||||
| 9 | ||||||||||||
| 10 |
| A | B | C | |
|---|---|---|---|
| 1 | Overdraft interest rate | 0.105 | |
| 2 | |||
| 3 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
Step 4: the annual rate
Skipping the discount means keeping the money for (net days minus discount days) longer, and paying the discount amount for the privilege. Relative to what you would actually pay with the discount, and scaled to a year: =IF(F2=0,0,F2/(1-F2)*365/(G2-E2)). 2% for 16 days comes to about 46.6% a year. A common shortcut is rate times 360 divided by the days gained; it gives slightly lower figures.
Step 5: decision and savings
J2 compares with the overdraft rate: =IF(I2>Settings!$B$1,"take discount","use terms"). K2 works out the discount per year from annual spend, but only where the discount is taken. For the printer offering 1% for 80 days the rate is only about 4.6% a year, so using the full terms is cheaper than the overdraft.
Common mistakes
Taking the discount without checking the deadline
Short-paying after the deadline means the supplier will chase the difference.
AND instead of OR
With AND, only bills that earn a discount and are also due soon get paid. The overdue bill ER-4538 would stay unpaid.
Deadlines on a weekend
The formulas count calendar days. Whether a deadline on a Saturday moves to Monday depends on your agreement with the supplier. To work with business days in the run, =WORKDAY(B2-1,1) moves a date to the next working day, with a holiday list as the third argument.
How to check your result
- Three bills earn a discount: ER-4566 (37.47), ER-4571 (309.40) and ER-4575 (14.28), 361.15 in total.
- The run pays five bills, 21,474.85 in total.
- Task 2: the annual rate for L-201 is about 51.3%, and the discounts taken total 3,334.00 a year.
The functions in German Excel
XLOOKUP is XVERWEIS, IF is WENN, OR is ODER, ROUND is RUNDEN and WORKDAY is ARBEITSTAG. Example: =WENN(ODER(G2>0;D2<Einstellungen!$B$2);F2-G2;0).
Excel versions
XLOOKUP needs Microsoft 365 or Excel 2021 and later; before that use VLOOKUP(E2,Suppliers!$A$2:$G$5,5,FALSE) for the discount days and column numbers 6 and 7 for rate and net days. Microsoft lists WORKDAY for Excel 2016 and every later version. IF, OR and ROUND work everywhere.
Frequently asked questions
Why 365 and not 360 days?
365 matches the calendar days used for the terms. Textbooks often use 360, the banking convention. It rarely changes the decision.
Can I read the terms straight from the text?
With TEXTBEFORE, TEXTAFTER and VALUE you can, as long as every text follows the same pattern. Keeping discount days, rate and net days in their own columns, as here, is safer.