A simple php formula for homebrew