calculated s,th,a