Finished place-order function by adding function to calculate time layer sum. Confirmed functionality with two check-expects, but more thorough testing is necessary.