Fix precipitation calc in script