Calculates the z-score as (value − mean) ÷ standard deviation, expressing how many standard deviations the value lies from the mean.