Edited the formula in calculateParagon method