My baby won't stop crying and I'm getting angry

I hate this feeling. I hate feeling mad at him. It's not his fault! But I'm just getting so frustrated. He won't stop crying. It's been like this all day. He's only quiet when he eats and he's hardly slept. I've even given up breast feeding and gave him formula because he's quiet for a bit longer. I thought maybe he just might not have been eating enough from me but when I give him formula, it still seems like he's not getting enough. So I'll give him a bit more and he just spits it up. I don't know what to do. I've given him drops for gas but he's honestly been burping and farting just fine. I'm so lost. I just want to cry. I'm getting so stressed out and it's making me dread going back to work because I know it will be even harder to wake up and get ready and leave him if he stays like this. Please help. I don't know what else to do