here's my issue

i'm looking to make a thriftshop 3d printer, after salvaging 6-8 printers i have an assortment of steppers and other motors and various other components bits and bobs for my project.

i have on hand: 1 m42sp-6te -24v 400ma has 10? on the sticker (x axis) 1 m42sp-6nka - 24v 400ma has 6.3? on the sticker (y axis) 1 m42sp-6te - 24v 517ma has 20? on the sticker (z axis) 1 m35sp-7t - 6v 807ma 9? on the sticker (feeder)

i plan to run it something similar to this

arduino uno r3 controls 2 atmega328s each of which controls 2 L293ds and 2 sensors (x+y 2 sensors are momentary switches for endstops) (z endstop momentary and extruder on). my extruder system (heating and temp control) are separate from the stepper controlling circuit

basically i'm trying to find out what size power source i need to handle; those 4 steppers, 2 atmega328s, 4 l293ds, 3 pushbuttons and 1 photoresistor(extruder on)

i know there has to be a formula for it but i'm a bit lost on it if someone could point me in the right direction of the formula and how to enter the information i would be grateful

thank you in advance