How to calculate a cost based on a number of days attendance selected