We used to have a non-written 'whatever' policy. Which means, you can do whatever you want when there is no project, as long as you come to office everyday. But, when there is a project, you have to do whatever to meet the deadline.
It sounds fair and worked for us.