correct bad indentation on function checkTimeConditions