How to Calculate Distance and Exposure Time