calculate absolute and real time