hi

you have CD declared as a word variable and also :

CD =B-A

did you mean CB and not CD ?