public TimeSpentOnTask getTimeSpentOnTaskFromList(int taskID, String userID) {
        TimeSpentOnTask tsot = null;
        User user = null;

        for (int i = 0; i < Controller.userList.size(); i++) {
            if (Controller.userList.get(i).getUserName().equals(userID)) {
                user = Controller.userList.get(i);
            }
        }
        for (int i = 0; i < tsotList.size(); i++) {
            if (tsotList.get(i).getTaskID() == taskID && user.getUserName().equals(userID)) {
                tsot = tsotList.get(i);
            }
        }
        return tsot;
    }