updating formula for RethinkDB 1.13.4