Locked up baby daddy//advice please

Baby Girls first dentist appointment is on Monday . And my hubby got locked up yesterday in the hall . He was on house arrest . Got locked up because he was unknown of him having a test date , so he didn't show up for that and they locked him up . I hope he gets out soon💙😭

Anyone know how long they can give him? They only give his mom info but I hardly talk to her