Calculate the timeBuffer relatively to make sure it is correct when going over the 00:00 time border