Deviation score formula