extract full calculation algorithm