Text this: Bandgap calculations and trends of organometal halide perovskites