Changed date calculation for z-score calculations, changed formula for calculation of z-scoress