Function statement calculating beestings