Implement Box-model Computations

Since last PR, I've fixed a number of errors and implemented percentages.