apply start value when calculating max number of trends for trends buffer length
apply start value when calculating max number of trends for trends buffer length

tekb-fintek/otlib-libot,otlib/otlib-libot