When you play your ball to a target that is not on the same level as then the position of your ball the following rule can be applied (real and online):
Up to Target: Shotlength = distance to target + elevation of target.
Down toTarget: Shotlength = distance to target - 2/3rd elevation of target.
A very similar rule can be used for putting.
Up to the hole: putlength = distance to the hole + 10 * elevation of it.
Down to the hole: putlength = distance to the hole - 5 * elevation of it.
Try it out.