原本沒有打算寫, 只是想嘴砲而已..

..
不過還是coding一次給你參考一下:
int holidays = 0;
double?[] d = { 6.5, 9, 6.5, 9.5, 6.5, 6.5, 0, 6.5, 6.5, 6.5, 6, 9.5, 6.5, 0, 6.5, 9, 6.5, 6, 6.5, 0, 6.5, 6.5, 6.5, 6.5, 6.5, 6.5, 0, 6.5, 0, 0, 0 };
int len = d.Length + 4;
int unit = 7;
int start = 0;
int loop = 0;
Console.WriteLine("總計天數: {0}", d.Length);
while (start < len)
{
start += unit;
for (int j = start - unit; j < start && j < d.Length; j++)
{
if (d[j] == 0)
{
holidays++;
...