impleted addway in calculatePefectTime