Corrected medal calculation for equals times