At first determine your read offset, then determine the combined read/write offset. By using this formula, you will get the write offset. Write Offset = Combined Read/Write Offset – Read Offset