Adjusted sum formula