How to calculate total cost based on number of nights with weekly discount