How the percentage of completion is calculated?