Added support for calculating averages over 24 hours