Add calculations for timeWindow