completed the 'j' calculation