Integral Equations volterra type 2 using the trapezoid method

Hi there, I am trying to find out how to make an approximation to a linear integral equation using the trapezoid method. I need to find something for

y(n+1). I found something on the internet when searching but wasn't sure of whether it was correct or not. It was stating:

y(tn)=g(tn)+h{0.5*K(tn,t0,y(t0))+SUM[j=1 to n-1]K(tn,tj,y(tj))+0.5*K(tn,tn,y(tn)).

sorry if this isn't clear, I am unsure of how to type in maths equations on here.

Could you please either clarify that this is correct or let me know what the correct equation is?

Thanks alot, Chris