# Simple math formula

**URL:** <https://forum.kirupa.com/t/simple-math-formula/317165>\
**Category:** programming\
**Created:** [December 12, 2010, 8:42pm UTC](https://forum.kirupa.com/t/simple-math-formula/317165 "2010-12-12T20:42:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![substance](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@substance](https://forum.kirupa.com/u/substance)\
**Post date:** [December 12, 2010, 8:42pm UTC](https://forum.kirupa.com/t/simple-math-formula/317165/1 "2010-12-12T20:42:47Z")

</div>

I’m calling this function once every second:

```auto
x += a;
a += b;

```

and I need a formula to be able to find out how many seconds it will take for x to reach a certain value.
