Program not working as intended

In all cases that you have coded, Current time will ALWAYS be greater than 400. Use serial print to show that actual numbers you are working with.

Paul