Possible to add upon an input

I want to add two integers but only once a tick so that I can work amount the number of ticks that have passed. Ive created a function that will hopefully do that.