Convert hash rate and time
Multiply TH/s by 10¹² or PH/s by 10¹⁵ to get hashes per second. Multiply days by 86,400 to get seconds. Use the combined effective rate of the machines working toward your solo payout. For example, a 200 TH/s miner hashing at full speed for 90% of the period averages 180 TH/s across that period.
Calculate expected hashes and expected time
At difficulty D, finding a valid block takes approximately D × 2³² hashes on average. Divide that by H to get the expected time in seconds. At 100 trillion difficulty, a 200 TH/s miner has an expected time of about 2.15 billion seconds, or 68.1 years.
Convert expected blocks into a probability
Divide the time window by the expected time to get λ, the expected block count. Independent hash attempts with a tiny chance of success per attempt are well approximated by a Poisson model. The chance of zero blocks is exp(−λ), so subtract it from 1. For the home miner over 365 days, λ is about 0.01469, which gives a 1.46% chance of at least one block.
Account for changes in difficulty and uptime
For a forecast at current difficulty, use the same difficulty across the selected window. If you know or want to model changes, split the window into intervals, calculate λ for each interval using its own difficulty and effective hash rate, then add those values before converting to probability.