Since a day has 24 hours, the project was to take 24*4 = <<24*4=96>>96 hours.
Bill took 6 seven-hour naps during the four days, a total of 6*7 = <<6*7=42>>42 hours
The time he spent working on the project is 96-42 = <<96-42=54>>54 hours.
#### 54