I have played with it a bit and have got the if statement to return zero however the bottom half of the script won't calculate the hours. if (timein.rawValue == 0 || timein.rawValue == null || timeout.rawValue == 0 || timeout.rawValue == null){this.rawValue=0;}else{var timefinished = (timeout.rawVal...