Implemented getPathCostOnDate