Add calculation method to the Location object