solving for maximimum insurance premium