# Calculating mean

**URL:** <https://community.thunkable.com/t/calculating-mean/2386933>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [April 23, 2023, 6:35pm UTC](https://community.thunkable.com/t/calculating-mean/2386933 "2023-04-23T18:35:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markojelavi1rt](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@markojelavi1rt](https://community.thunkable.com/u/markojelavi1rt)\
**Post date:** [April 23, 2023, 6:35pm UTC](https://community.thunkable.com/t/calculating-mean/2386933/1 "2023-04-23T18:35:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/5333c073ed5232898a3ab5a0588d2d5a141e13f2.png)  
[https://x.thunkable.com/copy/2bbec9cc1e7df9ee8f14739e80e5a532](https://x.thunkable.com/copy/2bbec9cc1e7df9ee8f14739e80e5a532)

I made a count variable which increases by 1 every turn. Average value is set to 0, it increases by current speed every turn and is divided by the count. I thought this should work but in practice the average value is always too low.

I can consistently have 5 km/h for current speed every turn (0.6 seconds) and average will vary around 1-2. Any idea whats the problem and how I could fix this?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 22, 2023, 6:36pm UTC](https://community.thunkable.com/t/calculating-mean/2386933/2 "2023-07-22T18:36:27Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
