What is the algorithm for taking the total score?

1. When the home and away team’s overtime score is not zero:
Final score = overtime score + penalty shootout score
2. When the home and away team’s overtime score is zero:
Final score = regular time score + penalty shootout score

@2020 TheSports all right reserved