Added way to calculate time between boxes