Add condition for principal and time to be greater than zero