Hi, welcome te the forum

Did not (yet) look at your file, but may be...
=D2+125*if(E2="A",2,1)