answer please

Can you get your period like July 30- August 6th. Then the app says I should have gotten it again August 31st??? Why would it come twice in one month?