# How to fix total distance and pace

**URL:** https://community.thunkable.com/t/how-to-fix-total-distance-and-pace/3756648
**Category:** Questions about Thunkable X
**Tags:** help
**Created:** [April 20, 2025, 2:35pm UTC](https://community.thunkable.com/t/how-to-fix-total-distance-and-pace/3756648 "2025-04-20T14:35:27Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [April 23, 2025, 4:48am UTC](https://community.thunkable.com/t/how-to-fix-total-distance-and-pace/3756648/6 "2025-04-23T04:48:04Z")

</div>

Your formulas for calculating x, y, and z are significantly different from what I’ve always used which is based off of various websites that mention D, V, and W. So what’s worked for me is this:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/f/9f8114a4ed1985b4a6d7e729f57421c8690c2b9c.png)

(Source: [this topic](https://community.thunkable.com/t/haversine-formulas-or-acos-cos-sinor-sqt-not-functioning-with-sensor-location/2753592/16))

But maybe part of the issue you’re having is that the level of precision calculated may not be enough to register for small movements. See [Haversine Formulas (Or ACOS/COS/SINor SQT) Not functioning with Sensor Location - #17 by manyone](https://community.thunkable.com/t/haversine-formulas-or-acos-cos-sinor-sqt-not-functioning-with-sensor-location/2753592/17).

---

_[View the full topic](https://community.thunkable.com/t/how-to-fix-total-distance-and-pace/3756648)._
