update php formula