I have a df with machine state change details and their shift details(7 AM-7 PM>> DAY and 7 PM-7 AM>> NIght).need to calculate each state seconds(next state epoch -c