Added formula for std and CND