withdraw means decrease in money so we represent as the negative sign
let you have total 1000 in your account and you have withdrawn 700 means you have now = 1000+(-700)=1000-700 =300
so, here used -700
and if you have total 1000 and you earned 700 then total money you have = 1000+700=1700
so, here you have to use +700