Time Tracking minus weekends

I’m looking to implement time tracking into my board, time starts when a ticket is created, stopped at certain statuses (hold, with user etc) and then starts again when changed back to WIP.

At present the tracking is a continuous timer, what I would like to do is created a formula field that calculates whether its a weekend (non-workday) and takes that away from the time elapsed.

Is this possible?
Cheers

Or even an automation string that stops the timer if its designated a weekend/non-working day