Finished weird equation/calculations bit