A mechanic charges $45 per hour for labor plus $55 for a computer diagnostic test. The mechanic charges a customer $595 to repair a vehicle. How many hours did the mechanic spend on the repair?