You could calculate the distance between two Lat / Lon coordinates instead of UTM coordinates.
The calculations are more complex, but it allows you to calculate the distance between any coordinates.
See GPS4PPC source code as it includes these calculations:
Gps4ppc