Need to calculate return date automatically

I have transdate field that is today date, and have to be return date field.

If a book is subscribed today user need to return the book with in 4 weeks if the pages is more than 1000, if it is less user need to return with in 2 weeks.

 

How can i write my method for above condition in table level

Thanks in advance..

Related
Recommended