Perhaps the simplest solution to your problem is to buy a chain breaker & a master link and take out a couple of links of your chain.
Nothing really matches up in the bicycle world.
Mashed a derailleur 2 weeks ago. SRAM, but no part # on it per ISO 9000. I ordered one, no part # from modernbike, probably no dimensions on the SRAM website anyway. Came in with a 1.5" diameter rear wheel instead of 1". ? Made it fit but some screw against the frame is cranked way out whereas the original was all the way in. Had to shorten the chain. 2 days fiddling with it and gave it the 3rd & final (I hope) adjustment tonight. FIrst 60 miles I couldn't get first sprocket, had to push bike up a grade or two.
Front derailleur sprung in the same accident. No SRAM front derailleurs in stock at either modernbike or universalcycles . No part # on it. I bought a shimano altus front derailleur from universalcycles, 1000's of bikes have them, right? My SRAM and all the other 5 trash MTBs & 10 speeds I have the cable pulls down. This shifter the cable pulls up. I could send it back and wait another week riding on a WT Grant 3 speed with 3 lb cargo capacity. I might get hungry. Or make a bracket. 1 piece of steel cut out of a box fan, 2 pieces of textolite, 1" 1 1/2" and 2 1/4" long # 6 screws, 1 1/2" # 10 screw required.
Lets see - the headlight won't clamp on the handlebar, the rubber band is too short. I bought 4 different seats, 2 of them wouldn't even fit rails on my bike. My seatpost is not a standard size, it has a casting on the top with a clamp for rails. To use 3 of the seats I had to make a 1/2" post adapter out of a shoulder bolt 2 5/16" steel rods and 8 set collars. Vendors don't describe whether a seat fits what kind of rails, you have to guess from the picture.
Fender brackets don't fit, I have to make them out of wire from mcmaster.com . Torque arms you buy are weak cheesy short ****. I make them out of bed frame rails.
So anyway, an electric drill motor, set of drills, safety glasses, tin snips, a vise, a sabre saw, various pliers & drivers are required to maintain a bike. Or keep running to the bike shop and pay the professionals $$$$. In my case, push the bike 6 miles RT to the bike shop since I don't drive a car anymore. He doesn't work on electric bikes, never stocked a cargo bike except the schwinn 3 wheeler, and never ever had a bike my size that wasn't single speed, pink, with holly hobbie logo on the seat. I will buy tires & tubes from him. But I check every time now to make sure he didn't sell me another piece of trash limited to 40 PSI. Put that one on out at the summer camp, had to limit speed home to 10 mph to not dent my rim.