How long can I borrow and lend?

Edited

As long as your health factor stays above 0%.