Improved the total systematic calculation algorithm