since we are in the topic of oil filters, would like to ask the gurus, how do you usually choose which viscosity of oil to use?

for example, on a 4m40 or 4d56 with 130k km upwards of mileage, is it correct to use 15w40 weight of oil?