Computing planetary positions – a tutorial with worked examples