Calculating number of nights based on check-in and check-out dates