@SuppressWarnings("deprecation")
	private static long getDelayFromNow() {
		Date nowD = new Date();
		Long now = nowD.getTime();
		Long start = new Date(nowD.getYear(), nowD.getMonth(), nowD.getDate()).getTime() + Notification.SCHEDULE_DELAY;
		long diff = now - start;
		return Notification.SCHEDULE_PERIOD - (diff % Notification.SCHEDULE_PERIOD);
	}