Ice Hockey penalties

Types of Penalties
If a goaltender receives a penalty, another player who was on the ice at the time of the offense must serve it for him. Exceptions are the match penalty. If a goaltender receives such a penalty, he must leave the ice and a substitute goalkeeper is brought in.

Fewer than 5 minutes
In a situation where there are fewer than 5 minutes remaining in play (the final 5 minutes of regulation time), should unequal simultaneous penalties be assessed (a minor or major penalty against one team and a misconduct or match penalty against the other), then instead of both sides serving their full times (which is impossible in the case of the misconduct or match penalty, as fewer than 5 minutes remain), the minor penalty is cancelled and its time subtracted from the major penalty, which is then assessed against that team.