take radius of the earth as R