Since $v = at$, let's plug it into the equation of drag. That resulted in, $ma = \dfrac{1}{2}C_d\rho Avat$ $m = \dfrac{1}{2}C_d\rho Avt$ Now you have two variables in a function that can be solved by calculus.