If you know the apoapsis and periapsis, you can find the eccentricity, using $r_a = a (1+e), r_p = a (1-e)$ (https://en.wikipedia.org/wiki/Apsis#Mathematical_formulae).
Using the eccentricity, you can find the radius at any angle $\theta$ from the periapsis (this angle is also called the true anomaly).
$r(\theta) = \frac{a(1-e^2)}{1+e.\cos \theta}$(https://en.wikipedia.org/wiki/Kepler_orbit#Johannes_Kepler)
With time, it is little more difficult. The mean anomaly (M) is defined as
$M = \frac{2\pi t}{T}$ where t is the time since last periapsis, and T is the time period.
This mean anomaly relates to true anomaly through a variable called eccentric anomaly (E). From mean anomaly (which you get from the time), you can get eccentric anomaly using
$M=E-e.\sin E$
Now this equation isn't analytically solvable, but you can solve it graphically or numerically, or using a simple iteration which I would demonstrate here (technically included in the numerical methods, but it's easy enough to show here). It is easy enough to be done on a simple scientific calculator.
$E_{n+1}=M+e.\sin E_{n}$ where $E_0=M$
Using this E, you can find the true anomaly $\theta$ using
$\theta=2 \tan^{-1}[ \sqrt{\frac{1+e}{1-e}} \tan \frac {E}{2}]$
Then you can find the radius as described above.