calculate_rate(→ decimal.Decimal)
calculate_rate
Calculate the rate for an attendance based on type, duration and role.