Rainbarf formula for v1.1