g.j. hamwi formula