wrong variable used
get scale from the layer properties

Calculating is impossible (too timited)