Just as Jesus had prophesied, He was dead and in the grave for 3 days and 3 nights, from just before sunset on Wednesday, to just around sunset on the Sabbath day. (Matthew 12:39-40)
In the evening after the first Holy Day of Unleavened Bread on Thursday, while Jesus had been in His tomb for one day, Mary Magdalene and Mary the mother of James and Salome bought spices and ointments.
Upon the second day that Jesus was in His tomb, on Friday they mixed and prepared the spices and ointments to embalm Jesus. (Mark 16:1, Luke 23:56)