Federal tax payable: 30000*15%=4500
Less: Non-refuandable credits:9600(basic personal anount)+1019(employment amount)+QPP+EI+QPIP+...)*15%
The result is what you should pay. if you witheld more at sources, then you will get back; otherwise is balance owing.
The same calculation thinking for Quebec tax return.