The total time of the programs is 6 programs * 30 minutes/program = <<6*30=180>>180 minutes
A quarter of this time is spent on commercials, so that's 180 minutes / 4 = <<180/4=45>>45 minutes
#### 45