Time isn't working

It's working now that i do what you said, i use the posi =0 at the end of programa().

Thank you all for helping me