PC 4019 is the statute that regulates credit for jail time. There are,various versions depending when the defendant was incarcerated. Without being there I can only guess that the different versions applied to certain defendants.
The response above is not intended as legal advice since it’s impracticable to provide thorough, accurate advice based upon the query without additional details. It is highly recommended that one should seek advice from a criminal defense attorney licensed in your jurisdiction by setting up a confidential meeting. Moreover, this response does not constitute the creation of an attorney-client relationship since this message is not a confidential communication because it was posted on a public website, thereby publicly disclosing the information, which is another reason to setup a confidential meeting with an attorney.
PC 4019 is the penal code section which controls credits for time served and how much time one must serve. Penal Code 4019 has been amended several times to reflect AB 109, or Assembly Bill 109, which is the legislation designed to reduce prison overcrowding. Depending upon the date of the offense, AB109 and PC 4019 apply in different ways. My best guess it that the other prisoner had a date of offense that was different from that of your daughter in such a way that a different version of 4019 applied.
364 - (2*109) = 364 - (218) = 146 at half, so another 73 actual days.
The opinions rendered herein are based on general principles of law. Laws vary from jurisdiction to jurisdiction and there are often numerous factors which can render advice or an opinion inapplicable. You should NOT make any decisions about the handling of a legal matter without first directly consulting with an attorney about the particulars of your case.