Unless you are able to post bail with respect to the crime that you have been convicted of per your question, there is nothing illegal about you setting in jail for the time period that you have written about waiting to be sentenced. Most likely you will receive credit for the time you are in jail concerning any sentence that you will receive for jail time.