Calculates the time difference

@idrikabore, you could do it as outlined in the post discussed previously: