(resetDay)
| 113 | } |
| 114 | |
| 115 | function getRmainingDays(resetDay) { |
| 116 | if (!resetDay) return 0; |
| 117 | let daysInMonth = new Date(year, month + 1, 0).getDate(); |
| 118 | if (resetDay > today) daysInMonth = 0; |
| 119 | |
| 120 | return daysInMonth - today + resetDay; |
| 121 | } |
| 122 | |
| 123 | function bytesToSize(bytes) { |
| 124 | if (bytes === 0) return "0B"; |