There might be too many variables to incorporate into a formula. I have seen some pretty heavy frost coating on my east/west-facing (unheated) porch roof, and temps recorded never dipped below 35˚f. Other times overnight temps went well below freezing and no frost at all was evident.
Sky cover, wind/direction or lack thereof, and relative humidity/dew point all must play a factor if there is going to be frost.