Setting ride time duration for indoor use.

I'm using a edge 820 for indoor training only. I usually train for 40 minutes and manually start and stop. Is it possible to set 40 minutes so it stops automatically. I thought I'd come across this is menus a while ago but can't find it now. Thanks in advance, Steve.