What is the expected number of days until it rains $d$ days in a row (including the $d$ days) when the probability it rains on a single day is $p$?
I managed to figure out a solution for the case $d=2, p=1/2$ but don't know how to generalize it to different values of $d$ and $p$ when the probabilities don't line up nicely with the Fibonacci series.
My proof
Let $P_u(n)$ denote the chance it rained for $d$ consecutive days during any of $n$ days.
I managed to work out the value of $P_u(n)$ using this question.
Let $a_n$ be the number of combinations of $n$ days such that there were no $2$ consecutive rainy days and the last day was rainy. Let $b_n$ be the number of combinations of $n$ days where there were no $2$ consecutive rainy days and the last day was not rainy.
$$a_1 = 1, \; b_1 = 1 \\ a_n = b_{n-1}, \; b_n=a_{n-1}+b_{n-1}$$
Calculating the first few values we get
$$a_2 = 1, \; b_2 = 2 \\ a_3 = 2, \; b_3 = 3 \\ a_4 = 3, \; b_4 = 5$$
We can notice that (where $F_n$ is the $n^{th}$ number in the Fibonacci sequece)
$$a_n = F_n, \; b = F_{n+1}$$
The total number of days it didn't rain $2$ consecutive days is then $a_n + b_n = F_n + F_{n+1} = F_{n+2}$ with the total number of combinations being $2^n$, so
$$P_u(n) = 1 - \frac{F_{n+2}}{2^n}$$
Let $P_e(n)$ denote the chance the chance $n$ is the last of the $d$ days in which it rained and it is the first time it rained for $d$ consecutive days.
$$E_{days} = 1P_e(1) + 2P_e(2) + 3P_e(3) + 4P_e(4) + ... \\ = P_e(\ge1) + P_e(\ge2) + P_e(\ge3) + P_e(\ge4) + ... \\ = (1 - P_u(0)) + (1 - P_u(1)) + (1 - P_u(2)) + ... \\ = \frac{F_{0+2}}{2^0} + \frac{F_{1+2}}{2^1} + \frac{F_{2+2}}{2^2} + ... = \sum_{n=0}^{\inf} \frac{F_{n+2}}{2^n}$$
$$E_{days} = \sum_{n=0}^{\inf} \frac{F_{n+2}}{2^n} = \sum_{n=0}^{\inf} \frac{F_n}{2^n} + \sum_{n=0}^{\inf} \frac{F_{n+1}}{2^n} \\ = \frac14 \sum_{n=0}^{\inf} \frac{F_n}{2^{n-2}} + \frac12 \sum_{n=0}^{\inf} \frac{F_{n+1}}{2^{n-1}} \\ = \frac14(E_{days} + 2) + \frac12(E_{days} + 2)$$
$$E_{days} = \frac34E_{days} + \frac32$$
$$E_{days} = 6$$