I would also be happy with:
```javascript
var MB = 1024 * 1024;
var GB = 1024 * MB;

if (estimate >= 1 * GB) {
    ...
}
else if (estimate >= 512 * MB) {
    ...
}
```