I know there are a lot of similar questions, but none of them specifically solved my issue, it's an uni project and we are not allowed to use advanced/external stuff.
So basically the purpose is to calculate if the product which was rent and its being returned, has expired the time limit X the client can keep it, and if the expected return date it's a saturday or sunday, it should jump to the next monday (I can probably manage this simple logic).
public void newRent(Client client, Product product){
SomeDateFormat rentDate = SomeDateFormat.today();
SomeDateFormat expectedReturnDate;
}
...
public void returnProduct(Client client, Product product){
int diffDays = SomeDateFormat.today() - product.getRentDay();
}