public void calculateNextScheduledShutdown() {
if (!isScheduled())
return;
NSTimestamp currentTime = new NSTimestamp(System.currentTimeMillis(), java.util.TimeZone.getDefault());
TimeZone currentTimeZone = currentTime.timeZone();
int currentYear = currentTime.yearOfCommonEra();
int currentMonth = currentTime.monthOfYear();
int currentDayOfMonth = currentTime.dayOfMonth(); // [1,31]
int currentHourOfDay = currentTime.hourOfDay(); // [0,23]