This question already has an answer here:
I know what a "light year" means. However, I am very curious to know about the technique through which scientists are able to calculate the distance of various astronomical bodies from earth which are situated so far that it takes even light a huge amount to travel from there. I just want to know how they calculate distance ???