It would help if you would show your whole code.
What is the value of B1?