Can someone please help me correct this formula:

=if((H20*(H13-1))-1000)<0,0,((H20*(H13-1))-1000)

Thanks in advance
Frank