Ahoy! Looking for a breakeven algorithm

I’ve on here for a long time and so enjoy the community… the laughing, the crying… er, never mind.
I couldn’t post elsewhere for this question so here it goes: I’m sourcing an algorithm that shows a breakeven number, given multiple trades on a particular currency pair. Ex.: you’re on GBP/USD & have 2 trades for .5 lots long & 1 for .25 lots short all entered at differing places - where will the breakeven point be. Its a simple thing & I’ve seen one on a spreadsheet but don’t feel like writing my own at the moment.
I appreciate your help!
Jonathan