Try this:

In AF column you can write =D5/G5.
But you'll get error due to dividing by 0

Therefore you can use this:

=IF(ISERR(D5/G5),"",D5/G5)

Wich will give you blank cell instead of error.

Same for AG column you can write:
=IF(AF5="","",AF5/3600)