Rainbarf formula for v1.1

formula for rainbarf