Is this the correct way to compute or the resistor for the ATMEGA? and how to compute for the fuse?
Don't use an output resistor - the ATMEGA requires a regulated 5 volt output: -

Regards the secondary fuse: -

For the primary fuse, this will be based on what the transformer manufacturer recommends so, obtain the data sheet for the transformer and see what it says.