DIGITRONIC, your calculation is correct, but the transformer will be going hot, because the wire resistance of the 12V winding is too high. The diameter of the wire is too small.
The 12V winding must deliver 1A because you take it at the output. You have a lost of P = (12V - 5V) * 1A = 7W at the IC.