Add variables and conditional statements

added business hours variable and fixed conditional statements