add time caculate

Change-Id: Ibf01e6c0fb52a820e6d8341e4dc5008ade3762a2
Signed-off-by: li levi <levi.li@sap.com>