I want to provide a comprehensive response by covering the following information:
- Understanding partition size and offset
- Determine
offset parameter in diskpart
1. Understanding partition size and offset
Here is an example of list partition command:
DISKPART> list part
Partition ### Type Size Offset
Partition 1 Primary 100 MB 1024 KB
Partition 2 Unknown 16 MB 101 MB
Partition 3 Unknown 389 GB 117 MB
Partition 4 Primary 782 MB 829 GB
Here is how it looks in Windows Disk Management utility:

Try to visually match partitions based on their size. Note that the unallocated space is not listed as partition.
2. Determine offset parameter in diskpart
The diskpart utility requires specifying the offset parameter in KB. This makes list partition command insufficient to determine the exact value of the end offset for an existing partition. However, this value can be calculated for the selected partition with detail partition command:
DISKPART> detail part
Partition 4
Type : ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
Hidden : No
Required: No
Attrib : 0000000000000000
Offset in Bytes: 890469613568
Volume ### Ltr Label Fs Type Size Status Info
- Volume 5 F Windows RE NTFS Partition 782 MB Healthy
Now, we need to do a little bit of math. Fortunately, we can use tools :)
Convert MB to/from KB
Convert KB to/from byte
Here is how to calculate the value for the above example:
- Convert start offset value to KB: 890469613568B = 869599232KB
- Convert existing partition size to KB: 782MB = 800768KB
- Add the two to determine the end offset value in KB: 870400000KB
- Create a new partition and specify its size, for example 1000MB.
Here is the command: create partition primary size=1000 offset=870400000
The result is the following:

Note that the partition size is specified in MB, while the offset is in KB.