Welcome To Tom's Hardware Forums,
During those times it will not boot, does it give you any messages? Something like "Boot device not found please insert bootable disk" or is it simply a blank screen until it finally does boot or do you have to try again repeatedly.
What model and how old is the computer? Has it been cleaned out with compressed air lately (or at all)?
Sorry for all the questions, it'll help