private long getTimeFromType(String type) {
		type = type.toLowerCase();
		long remaining = task.getRemainingTime();
		if(type.equals("d"))
			return TimeUnit.MILLISECONDS.toDays(remaining) + 1;
		else if(type.equals("h"))
			return TimeUnit.MILLISECONDS.toHours(remaining) + 1;
		else if(type.equals("m"))
			return TimeUnit.MILLISECONDS.toMinutes(remaining) + 1;
		else if(type.equals("s"))
			return TimeUnit.MILLISECONDS.toSeconds(remaining) + 1;
		else if(type.equals("ms"))
			return TimeUnit.MILLISECONDS.toMillis(remaining) + 1;
		else
			throw new IllegalArgumentException();
	}