Our Fee Calculator calculates monthly fees and applies discounts for multiple swimmers
If you have multiple swimmers, we apply discounts, in order of the cost for each swimmer - Highest cost recieving lowest discounts. This tool makes it easy to calculate your monthly fee, with discounts applied.
- The first two swimmers (ordered by fee, high to low) get no discount.
- Swimmer 3 gets a 20% discount.
- Swimmer 4 and up gets a 40% discount.
You can adapt this programme to your own needs by modifying some if
statements. If you're not in the know with PHP, get the lowdown from their docs.
index.php
and result.php
include header.php
and footer.php
files which are not part of this repository. You'll need to create files called header.php
and footer.php
and add the nessecary HTML5 <head>
, <body
and <footer>
stuff, including compiled Bootstrap 4 CSS and JS, unless you'll be using your own CSS.
Feel free to use this project however you like, just remember it's licenced under the Apache Licence.