added wrapper funcs to calc timestamps