PRODUCT VALUE NUMBER OF PAYMENTS
| MIN VALUE | MAX VALUE | 1 TO 6 | 7 TO 11 |
|---|---|---|---|
| 500 | 1000 | 2% | 4% |
| 1001 | ∞ | 3% | 5% |
This is a small sample of the table of % interest to pay (the actual table is 5x5), I need to select the interest between a value and a number of payment installments, eventually I did with conditional---- were 81 lines of code, well for me it was ok, but I kept thinking what would be the "professional solution" using tables, pandas or numpy.
For example if my product cost 1500 USD, With 2 payments my interest rate would be 3%