As I mentioned in the post on ActionPoints … additional AP can be obtained from Glyph Hacking … 100 additional AP is added if the Glyph Hack is performed on an enemy portal.

```
+------------+--------------------+------------+
| Portal lvl | Perfect hack bonus | Time limit |
+------------+--------------------+------------+
| 1 | +28% | 20s |
| 2 | +40% | 20s |
| 3 | +55% | 20s |
| 4 | +55% | 19s |
| 5 | +55% | 18s |
| 6 | +80% | 17s |
| 7 | +80% | 16s |
| 8 | +112% | 15s |
+------------+--------------------+------------+
```

**Hack bonus:**

*B _{hack}* = 10 ×

*G*+

_{correct}*P*×

*B*

_{perfect}**Speed bonus:**

*B _{speed}* =

*P*× ⌊100 ×

*T*÷

_{left}*T*⌋

_{limit}**AP:**

*AP _{base}* = 50 ×

*G*

_{correct}*AP*= 20 ×

_{bonus}*P*× 2

^{0.5×Gcorrect}

*AP* = *AP _{base}* +

*AP*+

_{bonus}*B*

_{speed}where:

*P*is 1 if all glyphs were drawn correctly and 0 otherwise (*P*= ⌊*G*_{correct}÷*G*⌋),_{total}*B*is the hacking bonus,_{hack}*G*is the number of glyphs you got correct,_{correct}*G*is the total number of glyphs in the sequence,_{total}*B*is the perfect hack bonus corresponding to the number of glyphs in the sequence, as shown in the table above,_{perfect}*B*is the speed bonus,_{speed}*T*is the time remaining on the clock,_{left}*T*is the total time you were given to draw the sequence, as shown in the table above,_{limit}*AP*is the amount of AP earned for correctly-drawn glyphs,_{base}*AP*is bonus AP earned for drawing all glyphs correctly,_{bonus}*AP*is the total amount of AP earned from the glyph hack. (Note: Does not include AP from hacking enemy portals.)

Example: Suppose you perform a perfect glyph hack on a L7 portal with 5 seconds left. Your hacking bonus would be 10% × 4 + 1 × 80% = **120%** (4 correct glyphs and perfect hack bonus). Your speed bonus would be 1 × ⌊100 × 5 ÷ 16⌋ = **31%** (5 out of 16 seconds left). Finally, you would earn **8** glyph hacking points and 50 × 4 + 20 × 1 × 2^{0.5×4} + 31 = **311 AP**.