Calculating needed repairs for a specific ship