Invoice age and status
The goal is to calculate the correct invoice status ("OK", "Paid", or "Overdue") using the following rules:
- If there is an "x" in the "Paid" column, return "Paid".
- If there is not an "x" in the "Paid" column, and if the age is less than 31 days, return "OK" ...Read more