hi
i am not sure what you are trying to do.
both your activate and deactivate has the same condition equals.
you can only have 1 condition with equals, the other should be less than or greater than.
so you would have activate
minutes before the off is equal or less than tpb
deactivate
minutes before the off is greater than tpd
mcbee