Hamwi formula