Two limb calculation algorithm | ScratchStats