There is no relation with your ulcer and late period.
If your pregnancy
test negative,then go for investigation of OLIGOMENORRHOEA.
So first of all do a USG and Thyroid function test and consult your gynaecologist.
All the best.