Maths for Moonglow's JMA | ScratchStats