After I consume a few cups of coffee I can stay awake and don't feel sleepy for around 7 hours.
But it can be different for other people and some people even fall asleep after drinking coffee so it depends on the person on how much coffee intake they need to keep them awake for a certain amount of time.