Calculate translation costs based on the analysis of a CAT program.