Have you tested to see if the integrals work for numerical values of md and ma ?
It's not clear what you're trying to do, since you've got NSolve around something that doesn't look like an equation. Maybe you want NIntegrate instead NSolve around Integrate.
Thank you Frank, I just edited the equations to make it clear. Do you have any ideas?