For the purposes of this chapter, the last element constituting a cause of action on an obligation or liability founded on a negotiable or nonnegotiable note payable on demand or after date with no specific maturity date specified in the note, and the last element constituting a cause of action against any endorser, guarantor, or other person secondarily liable on any such obligation or liability