Task Description: Implement Time Penalty Calculation
You are required to implement a function that calculates the total time penalty for a contest based on its end time and the number of wrong attempts made by a contestant. The function signature has been provided below.