Refactored true total and got rid of invalid octal digit error in takeaway_spec