Due date from payment terms (DATE + TEXT)

Medium Math Accounting pack
Description
Hints 0/4
Solutions 0
–
Test case
1
Reset
Submit
fx
A
B
C
D
E
F
G
1
2
3
4
5
6
7
8
9
10
Loading interactive spreadsheet...
Preparing grid cells and formula calculation engine
○ Ready Enter formula in highlighted cells, then click Submit.

The problem

Problem statement

Invoice date and terms in days are in B2:C2 for row 2. Put the due date in the Due cell D2 as yyyy-mm-dd.

The result must be a date string in yyyy-mm-dd form, and the terms come from C2 rather than being typed into the formula.

Problem data

Show the sheet as a table (selectable, copyable)
The exercise data, as a table
ABCD
1InvoiceInvoice dateTerms (days)Due
2INV-7012026-01-0530
3INV-7022026-02-1045

Notes

Adding days to a date is arithmetic: invoice date + terms. TEXT then renders the serial as the format the ledger expects. Doing the same with string concatenation breaks the moment a month rolls over.

How to approach

Your answer goes in D2.

  1. Target cell is D2
  2. Add the terms to the invoice date
  3. Render it with TEXT
  4. Shape: =TEXT(?+?, "yyyy-mm-dd")

Function guide

Related practice

FAQ

How do I add payment terms to an invoice date?

=invoice_date + terms for calendar days, then format with TEXT. For month-based terms use EDATE or DATE(YEAR, MONTH+n, DAY).

Why is my due date off by a day?

Either the terms count from the day after the invoice, or the date was built from text parts. Agree the counting rule with the business, then encode it.