your brown discharge may be result of side effects of tablet, and the red blood and brown discharge you had can be the withdrawal bleeding after stopping the drug, you have to take that as period and to start counting days from that,
the possibility of pregnancy
cannot be ruled out completely if you used the pill in the second half of cycle,
so you once go for blood test
for pregnancy to rule out the possibility.