For example I'm ev training attack stat using ditto method is my calculation correct salamence= 3(pokemon ditto transformed to) + 4(power item) X 2(pokerus) = 14 attack ev?
Yes, that's correct. KOing Salamence with a Power Bracer and Pokerus will give you 14 EVs.