Late period

My period has been late for 18 days and I haven't had sex for 6 months why does this happen?