Changed the scope logic for activities to include first and last day