Thank you HenkieD that helped alot. I got it figured out. I have to add 2 math instructions, a subtraction and a multiplication with your mathmatics in them. It works correctly. Thank you again. When I complete my code, I will post it. Thanks to you, I will be able to complete the program a little more easily.