The most complicated example I've found is in the Nintendo DS version of Mahjong Taikai - the basic process (steps 1 and 2 below) is the same but there are several optional rules that require further point adjustments after a match.
1. The Oka bonus is paid to the winner - this is composed of the excess points remaining from the players' buy-ins after their starting scores are deducted.
In general terms this will be: (buy-in - starting score) x number of players, e.g. typically (30k - 25k) x 4 = 20,000 pts
(each player bought into the game with 30k and started the match with 25k so all four paid 5k each into the Oka).
2. Each score has the buy-in deducted, is divided by 1000 and rounded to an integer. The 1st place score is tweaked if necessary so that all scores now sum to zero.
The following stages are all optional. The zero sum will always be preserved.
3. The Uma is applied, e.g. +20, +10, -10, -20. This must be done before the other stages because the placings may change.
4. The penalty for Dobon is paid by the bankrupt player to the opponent that busted them.
5. Yakitori penalties are paid - each player who failed to win a hand pays the specified amount to each of the players that did.
6. Tip payments are paid. Chips are used to track lucky occurrences during the game like Ura Dora and Ippatsu (for Ron the discarder pays the chip/s, for Tsumo all three losers pay). Each chip is worth 5k at this stage.
7. Finally, after all other stages, the Sashiuma side-bet is settled. Of the two betting players, the one with the higher final score receives the set amount from the other. In Mahjong Taikai this is a fixed amount of 10k.
The rule options and permitted values for Mahjong Taikai DS are listed in this thread:
http://www.reachmahjong.com/en/forum/vi ... =5&t=52824
There are worked examples in several of my video-game guides on GameFAQs, including the one for Mahjong Taikai DS.