Set activity A as category X within a timeframe, and as category Y for another timeframe. So between 9:00am-6pm activity a is catgory X but 7-00pm to 10:00pm the same activity is category Y.