This post seems to be helpful. It uses Bitcoin, but I think all translates to Dash just the same.
Let X be hashes per second, and Y be the difficulty. Let Z be the Log base 1-1/(2^32*Y) of 1/2. Z is how many hashes it will take you to find a block, on average. Let A be the current block reward...