Calculate medicine doase