The sample list
Du skriver inn
- Linjer
- Music | 10 | monthly
News | 60 | yearly
Du får
- Månedssum
- 15.00
- Årssum
- 180.00
Music costs 10 a month. News costs 60 a year, which is 5 a month. The monthly total is 15 and the yearly total is 15 times 12, or 180.
Kjørt med verktøyets egen kode.
Weekly and quarterly charges
Du skriver inn
- Linjer
- Gym | 12 | weekly
Cloud | 30 | quarterly
Du får
- Månedssum
- 62.00
- Årssum
- 744.00
A weekly charge is turned into a month by using 52 weeks divided by 12 months, so 12 becomes 52 a month. A quarterly charge is divided by 3, so 30 becomes 10. Together that is 62 a month and 744 a year.
Kjørt med verktøyets egen kode.
An unknown billing period
Du skriver inn
- Linjer
- Video | 15 | daily
Du får
- Melding
- Billing period must be weekly, monthly, quarterly, or yearly.
Only four periods are recognised. A line with any other period, or a line with no period at all, stops the whole calculation with this message.
Kjørt med verktøyets egen kode.