public static Alert alertFromTweet(String tweet, int minutesElapsed) {
		String[] sections = tweet.split(" - ");
		String[] locationMission;
		String extraReward = null;
		String location, mission;
		int timeLeft;
		int creditReward;
		
		if (sections.length != 3 && sections.length != 4) {
			return null;
		}
				
		locationMission = sections[0].split(": ");
		
		if (locationMission.length != 2) {
			return null;
		}
		
		location = locationMission[0];
		mission = locationMission[1];

		timeLeft = Integer.parseInt(sections[1].subSequence(0,  sections[1].length()-1).toString());
		creditReward = Integer.parseInt(sections[2].subSequence(0,  sections[2].length()-2).toString());
		
		// If hours (2h) instead of minutes (30m)
		if (sections[1].charAt(sections[1].length()-1) == 'h')
			timeLeft *= 60;
		
		//System.out.println("tl " + timeLeft + "; me " + minutesElapsed);
		
		// Apply time elapsed
		timeLeft -= minutesElapsed;
		
		if (sections.length == 4)
			extraReward = sections[3];
		
		return new Alert(location, mission, timeLeft, creditReward, extraReward);
	}