how to calculate tan?
tan=Opposite side of a right angled triangle/Adjacet side of a right angled triangle