using offset for adjusting time values