If a cloud releases 47 millimeters of rainfall per hour over a one hour period, and the average cloud typically releases 775 millimeters of rainfall over the course of 31 hours, find the amount of rainfall from the following condition. 

Subtract 22 from the average rainfall of the typical cloud per hour then multiply this by 23. Add this result to a constant cloud factor of 42. Add this new result to the hourly rainfall of the initial cloud and subtract 2 from it. What is the resultant millimeters of rainfall?