Fixed incorrect tip formula