calculate_idp function

Calculate the ideal design percentage