public boolean isOverdue(int borid) {
		
		int bid;
		Date outDate;
		Date inDate;
		Statement stmt;
		ResultSet rs;
		CastDate castDate;
		Calendar calDueDate = new GregorianCalendar();
		Calendar calCurrDate = new GregorianCalendar();
		
		borrowerTable borrowerTable = new borrowerTable();
		
		try{
			stmt = con.createStatement();
			rs = stmt.executeQuery("SELECT borr_bid, borrowing_outDate, borrowing_inDate FROM borrowing WHERE borrowing_borid = " + borid);

			while(rs.next()) {
				bid = rs.getInt("borr_bid");
				outDate = rs.getDate("borrowing_outDate");
				inDate = rs.getDate("borrowing_inDate");	

				castDate = new CastDate();
				
				String type = borrowerTable.checkBorrowerType(bid);
				int timeLimit = borrowerTable.getTimeLimit(type);
				Date dueDate = castDate.addToDate(outDate, timeLimit);
				calDueDate = castDate.getGDate(dueDate);
				calCurrDate = castDate.getGDate(castDate.currentDate());
				
				if (inDate == null) {
					if (calCurrDate.compareTo(calDueDate) > 0) {

						return true;	
					} else {

						return false;
					}
				} 
				return false;
			}
			stmt.close();
		}

		catch(SQLException e){
			System.out.print("Message: " + e.getMessage());
		}
		
		return false;
	}