I'm pretty sure I know what you're trying to do. Does this help?

=IF(H20=0,0,G20-H20)