It only rains about a month out of the whole year.
〇〇中△△は、△△ out of 〇〇と言います。
ですので、365日中30日なら 30 days out of 365 days となります。
1) It only rains 30 days out of 365 days.
「365日中30日しか雨が降らない。」
または、30日は約1ヶ月で、365日は1年なので
2) It only rains about a month out of the whole year.
「1年のうち約1ヶ月しか雨が降らない。」
とも言えます。
ご参考になれば幸いです!